
public class TestEnum {
	
	public static enum Type{
		Type_2,
		Type_1,
	
		Type_3,
		Type_4,
	}
	
	private Type type_first = Type.Type_1;
	private Type type_second = Type.Type_2;
	private Type type_third = Type.Type_3;
	private Type type_fourth = Type.Type_4;
	
	private Type type_11 = Type.Type_1;
	private Type type_22 = Type.Type_2;
	private Type type_33 = Type.Type_3;
	private Type type_44 = Type.Type_4;
	
	public void test(){
		testCompare();
		
	}
	
	private void testCompare(){
		if (type_first == type_second){
			println(true);
		}else{
			println(false);
		}
		println("111111111111111111");
		if (type_first == type_11){
			println(true);
		}else{
			println(false);
		}
		
		type_second = Type.Type_1;
		println("222222222222222222");
		if (type_first == type_second){
			println(true);
		}else{
			println(false);
		}
		
		println("---------------------");
		type_second = type_first;
		if (type_first == type_second){
			println(true);
		}else{
			println(false);
		}
		
		
		println("33333333333333333333");
		type_second = Type.Type_2;
		
		println(type_first.compareTo(type_second));
		
		println("4444444444444");
		
		type_second = Type.Type_1;
		println(type_first.compareTo(type_second));
		
		println("5555555555555555555555");
		println(type_first.compareTo(type_11));
		
		println("66666666666666666");
		type_second = type_first;
		println(type_first.compareTo(type_second));
		
			
	}

	
//	System.out.println(getDate(str4));
	private static void println(Object o){
		System.out.println(o);
	}
}
